package com.lyh.test.service.impl;

import com.lyh.test.entity.Detail;
import com.lyh.test.entity.WalletDetail;
import com.lyh.test.mapper.WalletDetailMapper;
import com.lyh.test.service.WalletDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WalletDetailServiceImpl implements WalletDetailService {
    @Autowired
    WalletDetailMapper walletDetailMapper;

    @Override
    public void save(WalletDetail walletDetail) {
        walletDetailMapper.save(walletDetail);
    }

    @Override
    public List<WalletDetail> getWid(Integer id) {
        return walletDetailMapper.getWid(id);
    }

    @Override
    public List<Detail> getDetailList(int id) {
        return walletDetailMapper.getDetailList(id);
    }
}
